package com.kun.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kun.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门表
 * @author kun.li
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName
public class SysDept extends BaseEntity {
    /**
     * 部门ID
     */
    @TableId
    @Schema(description = "部门ID")
    private String deptId;
    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    private String deptName;
    /**
     * 上级部门
     */
    @Schema(description = "部门名称")
    private String parentId;
    /**
     * 部门排序
     */
    @Schema(description = "部门名称")
    private Long weight;

    /**
     * 租户ID
     */
    private String tenantId;

}
